﻿@model SiteCredivale.ViewModels.FileListingViewModel

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <script src="~/Scripts/jquery-2.1.4_min.js"></script>
    <title>Adicionar</title>
   

    <script type="text/javascript">
        $(function () {
            $("a").click(function (e) {
                e.preventDefault();
                var ckEditorNum = parseInt($('#CKEditorFuncNum').val());
                window.opener.CKEDITOR.tools.callFunction(ckEditorNum, '/Uploads/Noticias/' + $(this).attr('href'), '');
                window.close();
            });
        });
    </script>
</head>
<body>
    <div>
        Seleção de arquivos<br /><br />
        @foreach (var item in Model.Files)
        {
            <a href="@item.FileName" style="font-size: larger;">@item.FileName</a>            
            <br />
        }
        <br /><br />
        @Html.HiddenFor(m => m.CKEditorFuncNum)
    </div>
</body>
</html>
